package com.dream.technology.db.dao;

import com.dream.technology.db.entity.RcFlowItem;
import com.dream.technology.db.entity.RcFlowItemQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RcFlowItemMapper {
    int countByExample(RcFlowItemQuery example);

    int deleteByExample(RcFlowItemQuery example);

    int deleteByPrimaryKey(Long id);

    int insert(RcFlowItem record);

    int insertSelective(RcFlowItem record);

    List<RcFlowItem> selectByExample(RcFlowItemQuery example);

    RcFlowItem selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") RcFlowItem record, @Param("example") RcFlowItemQuery example);

    int updateByExample(@Param("record") RcFlowItem record, @Param("example") RcFlowItemQuery example);

    int updateByPrimaryKeySelective(RcFlowItem record);

    int updateByPrimaryKey(RcFlowItem record);


    /**
     * 批量插入item
     * @param flowItems
     * @return
     */
    int insertList(List<RcFlowItem> flowItems);
}